home *** CD-ROM | disk | FTP | other *** search
- name Generic lathe
-
- % 00
- ! 00
- O 4
- N 3
- G 2
- X ->3.>4
- x ->3.>4 X
- Z ->3.>4
- D 2
- I ->3.>4
- K ->3.>4
- U ->3.>4
- W ->3.>4
- P ->3.>4
- A 60 P
- Q ->3.>4
- q ->3.>4 Q
- R ->3.>4
- F >3.>3
- T 2
- t 2
- S >4
- M 2
-
- ModalLetters X Z F # List of letters that are modal
-
- ModalGs 0 1 2 3 73 76 80 81 82 83 84 85 # List of g codes that are modal
-
- Sequence#s N 0 1 1 # Char, freq, incr & start
- First#? N # Y or N 'Output 1st sequence no.
- Last#? N # Y or N 'Output last sequence no.
-
- Comment ( ) # Begin End comment char.
-
- HCode Z # X or X U 'Horizontal char.
- VCode X # Y or Y V 'Vertical char.
- FeedCode F # Feed rate char.
-
- Spindle 3 4 5 # Cw, ccw & stop m codes
- Coolant 8 9 7 # On, Off & Mist m codes
- DComp 41 42 40 # Left, Right & Cancel m codes
- LComp 43 49 # On & Off codes
-
- SpeedType G 97 96 # CSS and RPM g codes
- FeedType G 95 94 # IPR & IPM g codes
-
- ByDiameter? Y # Y or N 'Output X val. by diameter
- CtrIncremental? Y # Y or N 'Inc or abs I & J
- ByQuadrants? N # Y or N 'Break arcs at quadrants
- CtrCode R # I J or R or I J K L
-
- Inc/Abs G 91 90 # Inc & Abs char. & values
- Inch/MM 20 21 # Inch & Metric g codes
-
- Spaces? Y # Y or N 'Spaces between words
- Incremental? N # Y or N 'Inc or abs output
-
- Feed G1 # Linear move
- Rapid G0 # Rapid positioning word
- Cw G2 # Circular move clockwise
- Ccw G3 # Circular move counter clockwise
-
- RevSigns X x # List of letters to reverse signs
-
- UppercaseComments? Y # Y or N 'Require uppercase comments
-
- AutoThread # Automatic thread canned cycle
- G76 A[TParams] Q[VBite] R0
- G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
- end
-
- Drill # Drilling canned/manual cycle
- G74 Z[Depth] F[Frate]
- end
-
- Peck # Pecking canned/manual cycle
- G74 Z[Depth] K[VBite] F[Frate]
- end
-
- Ream # Reaming canned/manual cycle
- G1 Z[H] F[FRate]
- G1 Z[VClear]
- end
-
- Bore # Boring canned/manual cycle
- G1 Z[H] F[FRate]
- G1 Z[VClear]
- end
-
- Back # Back boring canned/manual cycle
- G1 Z[H] F[FRate]
- G1 Z[VClear]
- end
-
- Cancel # Cancel a canned/manual cycle
- G80
- end
-
- StartCode # Start of the program
- %0
- !0 O[Program#]
- end
-
- 1stToolChange # First tool change
- G50 x[ToolH] Z[ToolV]
- G0 T[Tool] t[Tool] M42
- G[SpeedType] S[Speed] M[Direct]
- X[V] Z[H] M[Cool]
- End
-
- Infeed # Enable cutter comp
- G1 G[Side] X[V] Z[H] D[Dcomp] F[FRate]
- end
-
- Outfeed # Disable cutter comp
- G1 G40 X[V] Z[H] F[FRate]
- end
-
- ToolChange # Secondary tool changes
- M[CoolantOff]
- T[LastTool] t0
- G50 x[ToolH] Z[ToolV]
- G0 T[Tool] t[Tool] M42
- G[SpeedType] S[Speed] M[Direct]
- X[V] Z[H] M[Cool]
- End
-
- EndCode # End of the program
- G0 x[ToolV] Z[ToolH] M[CoolantOff]
- T[Tool] t0 M5
- M2
- End
-
- #LineCode
- #G1 X[V] Z[H] F[Frate]
- #End
-
- #RapidCode
- #G0 X[V] Z[H]
- #End
-
- #CcwCode
- #G3 X[V] Z[H] R[ArcRad]
- #End
-
- #CwCode
- #G2 X[V] Z[H] R[ArcRad]
- #End
-
- #Tap
- #G78 Z[H] F[FRate]
- #end cancel
-
- #LTap
- #G78 Z[H] F[FRate]
- #end cancel
-
- #Custom1
- #End
-
- #Custom2
- #End
-
- #Custom3
- #End
-
- #Upon Turret
- #M13
- #End
-
- Replace " t" with ""
-